<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="./iconfont/iconfont.css">
    <link rel="stylesheet" href="./lib/swiper/swiper-bundle.min.css">
    <link rel="stylesheet" href="./css/common.css">
    <link rel="stylesheet" href="./css/index.css">
</head>

<body>
    <!-- 顶部 -->
    <header>
        <img src="./img/1.png" alt="">
        <input type="search" placeholder="搜一搜">    
    </header>
    <!-- 横幅 -->
    <main class="main">
        <div class="swiper">
            <div class="swiper-wrapper">
                <div class="swiper-slide">
                    <img src="./img/banner.png" alt="">
                </div>
                <div class="swiper-slide">
                    <img src="./img/banner1.png" alt="">
                </div>
                <div class="swiper-slide">
                    <img src="./img/banner2.png" alt="">
                </div>
                <div class="swiper-slide">
                    <img src="./img/banner3.png" alt="">
                </div>
                <div class="swiper-slide">
                    <img src="./img/banner4.png" alt="">
                </div>
                <div class="swiper-slide">
                    <img src="./img/banner5.png" alt="">
                </div>
            </div>
            <!-- 如果需要分页器 -->
            <div class="swiper-pagination"></div>
        </div>
        <ul class="menu">
            <li>
                <img src="./img/z1.png" alt="">
                <span>上新精选</span>
            </li>
            <li>
                <img src="./img/z2.png" alt="">
                <span>小米众筹</span>
            </li>
            <li>
                <img src="./img/z3.png" alt="">
                <span>精品秒杀</span>
            </li>
            <li>
                <img src="./img/z4.png" alt="">
                <span>生活优选</span>
            </li>
            <li>
                <img src="./img/z5.png" alt="">
                <span>小米自营</span>
            </li>

        </ul>
        <ul class="menus">
            <li>
                <img src="./img/zz1.png" alt="">
                <span>直降千元</span>
                <div>
                    <p>清凉爆品</p> 
                </div>
            </li>
            <li>
                <img src="./img/zz2.png" alt="">
                <span>直降千元</span>
                <div>
                    <p>清凉爆品</p> 
                </div>
            </li>
            <li>
                <img src="./img/zz3.png" alt="">
                <span>直降千元</span>
                <div>
                    <p>清凉爆品</p> 
                </div>
            </li>
            <li>
                <img src="./img/zz.png" alt="">
                <span>直降千元</span>
                <div>
                    <p>清凉爆品</p> 
                </div>
            </li>
        </ul>
        <div class="img">
            <img src="./img/img.png" alt="">
        </div>
        <ul class="menus">
            <li>
                <img src="./img/zz1.png" alt="">
                <span>直降千元</span>
                <div>
                    <p>清凉爆品</p> 
                </div>
            </li>
            <li>
                <img src="./img/zz2.png" alt="">
                <span>直降千元</span>
                <div>
                    <p>清凉爆品</p> 
                </div>
            </li>
            <li>
                <img src="./img/zz3.png" alt="">
                <span>直降千元</span>
                <div>
                    <p>清凉爆品</p> 
                </div>
            </li>
            <li>
                <img src="./img/zz.png" alt="">
                <span>直降千元</span>
                <div>
                    <p>清凉爆品</p> 
                </div>
            </li>
        </ul>
    </main>
    <footer>
        <div >
            <i class="iconfont icon-shouye-xianxing"></i> 
            <span>首页</span>
        </div>
        <div class="span1">
            <i class="iconfont icon-fenlei"></i>
            <span >分类</span>
        </div>
        <div class="span2">
            <i class="iconfont icon-gouwuche"></i>
            <span >购物车</span>
        </div>
        <div class="span3">
            <i class="iconfont icon-wode"></i>
            <span >我的</span>
        </div>
    </footer>
    <script src="./lib/swiper/swiper-bundle.min.js"></script>
    <script>        
        var mySwiper = new Swiper ('.swiper', {
          loop: true, // 循环模式选项
          
          // 如果需要分页器
          pagination: {
            el: '.swiper-pagination',
          },
           autoplay:true,
           autoplay: {
            disableOnInteraction: false,
        },
        pagination :{
	el: '.swiper-pagination',
	clickable :true,
  }
        })        

        let span = document.querySelector(".span1")
        let span2 = document.querySelector(".span2")
        let span3 = document.querySelector(".span3")

        span.onclick = function(){
            location.href = "class.html"
        }
        span2.onclick = function(){
            location.href = "button.html"
        }
        span3.onclick = function(){
            location.href = "personal.html"
        }
    </script>
</body>
</html>